package com.jiruan.invoicemanagementsystem.service;

import com.jiruan.invoicemanagementsystem.pojo.Email;
import com.jiruan.invoicemanagementsystem.pojo.InvoicingRecord;
import com.jiruan.invoicemanagementsystem.util.PageHelper;

import java.util.ArrayList;

public interface IEmailService {
    //新增邮箱信息
    /*
    * 1.邮箱信息
    * 2.是否默认
    * */
    boolean addNewEmail(String email);

    //邮箱设为默认
    Integer setDefaultEmail(Email email);


    //根据邮箱id 修改邮箱信息
    public Integer updateEmailById(Email email);


    //查询所有邮箱信息 - (全查)
    public ArrayList<Email> queryAllEmail();

    //获取默认邮箱
    Email queryDefEmail();

    //





    public ArrayList<Email> queryEmail(PageHelper pageHelper);



    //获得所有邮箱条数
    public int queryEmailCount();


}
